package Single;

/**
 * @author VX5
 * @Title: MJC
 * @ProjectName DataStructure
 * @Description: TODO
 * @date ${DAT}21:04
 */
public class Single1 {
    private static volatile Single1 instance;

    public static Single1 getInstance(){
        if (instance == null) {
            synchronized (Single1.class) {
                if (instance == null) {
                    instance = new Single1();
                }
            }
        }
        return instance;
    }

    private Single1() {
    }
}
